TOPDIR := $(abspath ../../../..)
LOCAL_PATH := $(abspath .)
include $(TOPDIR)/build/build_config.mak

BUILD_SRCS := $(patsubst ./%,%, $(shell find . -name '*.c'))
BUILD_SRCS += $(patsubst ./%,%, $(shell find . -name '*.cpp'))
INCLUDE_DIRS := ./ \
				$(TOPDIR)/vos/include \
				$(TOPDIR)/vos/portable

LOCAL_COMMON_FLAGS := -D_GNU_SOURCE 
LOCAL_SRCS := $(BUILD_SRCS)
LOCAL_C_INCLUDES := $(INCLUDE_DIRS)
LOCAL_MODULE := libsimple_unit_test

include $(BUILD_STATIC_LIBRARY)

################################################################
#build shared library
################################################################
include $(CLEAR_VARS)

LOCAL_SRCS := $(BUILD_SRCS)
LOCAL_C_INCLUDES := $(INCLUDE_DIRS)
LOCAL_COMMON_FLAGS := -D_GNU_SOURCE 
LOCAL_LDFLAGS := -ldl -lstdc++
LOCAL_MODULE := libsimple_unit_test
include $(BUILD_SHARED_LIBRARY)